package openjdk.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

public class List2Set {

    public static void main(String[] args) {
        List<String> lst = new ArrayList<String>() {{
            add("ABCDE");
            add("DEFFX");
            add("abcde");
        }};
        Set<String> results = lst
                .stream()
                .map(String::toLowerCase)
                .collect(Collectors.toSet());
        System.out.println(results);
    }
}
